/* 主页的代码 */
/* VsCode 安装 easy less 扩展 */
/* less 文件自动转换成 css 文件  */
/* 模块1：顶部导航 */
.top-nav {
  height: 25px;
  background-color: #111;
  color: #fff;
  font-size: 12px;
}
.top-nav ul {
  height: 25px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.top-nav li {
  margin-left: 20px;
}
.top-nav .iconfont {
  font-size: 12px;
}
.top-nav-group {
  height: 200px;
  background-color: #f7f7f7;
  overflow: hidden;
  transition: all 0.4s;
}
.top-nav-group.hide {
  height: 0;
}
/* 模块2：主体导航 */
.navbar {
  height: 78px;
  border-bottom: 1px solid #ddd;
}
.navbar .container {
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .container .logo img {
  height: 30px;
}
.navbar .container ul {
  display: flex;
}
.navbar .container ul li {
  margin: 0 20px;
}
.navbar .container .nav-right .search {
  margin-left: 20px;
}
/* 模块3：轮播图 */
.mySwiper img {
  width: 100%;
}
/* 模块4：推荐产品 */
.goods h2 {
  font-size: 30px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.goods h2::after {
  content: '';
  width: 50px;
  height: 3px;
  background-color: red;
  position: absolute;
  transform: translateY(25px);
}
.goods .goods-floor {
  width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}
.goods .goods-floor .a1 {
  width: 922px;
}
.goods .goods-floor .a2 {
  width: 446px;
}
.goods .goods-floor img {
  max-width: 100%;
}
/* 模块5：返回顶部 */
.btn-go-top {
  width: 40px;
  height: 40px;
  background-color: #a4a4a4;
  position: fixed;
  right: 0;
  bottom: 30px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn-go-top .iconfont {
  font-size: 30px;
}
